home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
-
- <!-- ***** BEGIN LICENSE BLOCK *****
- - Version: MPL 1.1/GPL 2.0/LGPL 2.1
- -
- - The contents of this file are subject to the Mozilla Public License Version
- - 1.1 (the "License"); you may not use this file except in compliance with
- - the License. You may obtain a copy of the License at
- - http://www.mozilla.org/MPL/
- -
- - Software distributed under the License is distributed on an "AS IS" basis,
- - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- - for the specific language governing rights and limitations under the
- - License.
- -
- - The Original Code is the Places Bookmark Properties dialog.
- -
- - The Initial Developer of the Original Code is Google Inc.
- - Portions created by the Initial Developer are Copyright (C) 2006
- - the Initial Developer. All Rights Reserved.
- -
- - Contributor(s):
- - Joe Hughes <jhughes@google.com>
- - Asaf Romano <mano@mozilla.com>
- - Ehsan Akhgari <ehsan.akhgari@gmail.com>
- -
- - Alternatively, the contents of this file may be used under the terms of
- - either the GNU General Public License Version 2 or later (the "GPL"), or
- - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- - in which case the provisions of the GPL or the LGPL are applicable instead
- - of those above. If you wish to allow use of your version of this file only
- - under the terms of either the GPL or the LGPL, and not to allow others to
- - use your version of this file under the terms of the MPL, indicate your
- - decision by deleting the provisions above and replace them with the notice
- - and other provisions required by the GPL or the LGPL. If you do not delete
- - the provisions above, a recipient may use your version of this file under
- - the terms of any one of the MPL, the GPL or the LGPL.
- -
- - ***** END LICENSE BLOCK ***** -->
-
- <?xml-stylesheet href="chrome://global/skin/"?>
- <?xml-stylesheet href="chrome://browser/skin/places/bookmarkProperties.css"?>
- <?xml-stylesheet href="chrome://browser/skin/places/places.css"?>
- <?xml-stylesheet href="chrome://browser/content/places/places.css"?>
- <?xul-overlay href="chrome://browser/content/places/placesOverlay.xul"?>
-
- <!DOCTYPE dialog [
- <!ENTITY % propertiesDTD SYSTEM "chrome://browser/locale/places/bookmarkProperties.dtd">
- %propertiesDTD;
- <!ENTITY % placesDTD SYSTEM "chrome://browser/locale/places/places.dtd">
- %placesDTD;
- ]>
-
- <dialog id="bookmarkproperties"
- buttons="accept, cancel"
- buttonlabelextra2="&bookmarks.newFolderButton.label;"
- buttonaccesskeyextra2="&bookmarks.newFolderButton.accesskey;"
- ondialogaccept="BookmarkPropertiesPanel.onDialogAccept();"
- ondialogextra2="BookmarkPropertiesPanel.newFolder();"
- xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
- onload="BookmarkPropertiesPanel.onDialogLoad();"
- onunload="BookmarkPropertiesPanel.onDialogUnload();"
- style="min-width: 30em;"
- persist="screenX screenY width">
-
- <stringbundleset id="stringbundleset">
- <stringbundle id="stringBundle"
- src="chrome://browser/locale/places/bookmarkProperties.properties"/>
- </stringbundleset>
-
- <script type="application/x-javascript"
- src="chrome://browser/content/places/bookmarkProperties.js"/>
-
- <grid id="placesInfoGrid">
- <columns>
- <column/>
- <column flex="1"/>
- </columns>
- <rows id="placesInfoRows">
- <row id="titleRow" align="center">
- <label value="&bookmarks.name.label;" accesskey="&bookmarks.name.accesskey;"
- control="namePicker"/>
- <menulist id="namePicker"
- editable="true"
- droppable="false"
- oninput="BookmarkPropertiesPanel.onNamePickerInput();">
- <menupopup>
- <menuitem id="userEnteredName"/>
- <menuitem disabled="true">
- <menuseparator flex="1"/>
- <label value="&bookmarks.liveTitlesSeparator.label;"/>
- </menuitem>
- </menupopup>
- </menulist>
- </row>
- <row id="locationRow" align="center">
- <label value="&bookmarks.location.label;" accesskey="&bookmarks.location.accesskey;"
- control="editURLBar"/>
- <textbox id="editURLBar" size="10"
- onchange="BookmarkPropertiesPanel.validateChanges();"
- oninput="BookmarkPropertiesPanel.validateChanges();"/>
- </row>
- <row id="livemarkFeedLocationRow" align="center">
- <label value="&bookmarks.feed_location.label;" accesskey="&bookmarks.feed_location.accesskey;"
- control="feedLocationTextfield"/>
- <textbox id="feedLocationTextfield"
- onchange="BookmarkPropertiesPanel.validateChanges();"
- oninput="BookmarkPropertiesPanel.validateChanges();"/>
- </row>
- <row id="livemarkSiteLocationRow" align="center">
- <label value="&bookmarks.site_location.label;" accesskey="&bookmarks.site_location.accesskey;"
- control="feedSiteLocationTextfield"/>
- <textbox id="feedSiteLocationTextfield"
- onchange="BookmarkPropertiesPanel.validateChanges();"
- oninput="BookmarkPropertiesPanel.validateChanges();"/>
- </row>
- <row id="keywordRow" align="center">
- <label value="&bookmarks.keyword.label;" accesskey="&bookmarks.keyword.accesskey;"
- control="keywordTextfield"/>
- <textbox id="keywordTextfield"/>
- </row>
- <row id="descriptionRow">
- <label value="&bookmarks.description.label;" accesskey="&bookmarks.description.accesskey;"
- control="descriptionTextfield"/>
- <textbox id="descriptionTextfield" multiline="true"/>
- </row>
- <row id="folderRow" align="center">
- <label value="&bookmarks.createIn.label;" accesskey="&bookmarks.createIn.accesskey;"
- control="folderMenuList"/>
- <menulist id="folderMenuList"
- class="folder-icon"
- oncommand="BookmarkPropertiesPanel.onMenuListFolderSelect();">
- <menupopup>
- <!-- Static item for special folders -->
- <menuitem id="bookmarksRootItem"
- class="menuitem-iconic folder-icon"/>
- <menuitem id="toolbarFolderItem"
- class="menuitem-iconic folder-icon"/>
- <menuseparator id="foldersSeparator" hidden="true"/>
- </menupopup>
- </menulist>
- <button id="expander"
- class="down"
- tooltiptext="&bookmarks.expanderDown.tooltip;"
- tooltiptextdown="&bookmarks.expanderDown.tooltip;"
- tooltiptextup="&bookmarks.expanderUp.tooltip;"
- oncommand="BookmarkPropertiesPanel.toggleTreeVisibility();"/>
- </row>
- <checkbox id="loadInSidebarCheckbox"
- label="&bookmarks.loadInSidebar.label;"
- accesskey="&bookmarks.loadInSidebar.accesskey;"/>
- </rows>
- </grid>
-
- <separator class="thin"/>
- <tree id="folderTree"
- class="placesTree"
- collapsed="true"
- flex="1"
- type="places"
- height="150"
- persist="height"
- onselect="BookmarkPropertiesPanel.onFolderTreeSelect();"
- hidecolumnpicker="true">
- <treecols>
- <treecol id="title" flex="1" primary="true" hideheader="true"/>
- </treecols>
- <treechildren id="placesListChildren" view="placesList" flex="1"/>
- </tree>
- </dialog>
-